package it.polimi.entitiesDTO;

import java.util.Date;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

public class FlightDTO {
	
	@NotNull
	private int id;
	
	@NotEmpty
	private String class_;
	
	@NotNull
	@Min(1)
	private int price;
	
	@NotNull
	@Min(1)
	private int spots;
	
	@NotNull
	private boolean visibility;
	
	@NotEmpty
	private String arrival_airport;
	
	@NotEmpty
	private String departure_airport;
	
	
	public int getID() {
		return id;
	}
	public void setId(int id){
		this.id=id;
	}
	public String getClass_() {
		return class_;
	}
	public void setClass_(String class_) {
		this.class_ = class_;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public int getSpots() {
		return spots;
	}
	public void setSpots(int spots) {
		this.spots = spots;
	}
	public boolean isVisibility() {
		return visibility;
	}
	public void setVisibility(boolean visibility) {
		this.visibility = visibility;
	}
	public String getArrival_airport() {
		return arrival_airport;
	}
	public void setArrival_airport(String arrival_airport) {
		this.arrival_airport = arrival_airport;
	}
	public String getDeparture_airport() {
		return departure_airport;
	}
	public void setDeparture_airport(String departure_airport) {
		this.departure_airport = departure_airport;
	}
}
